.class Lframent/FramentOrder2$mOnclicliseter;
.super Ljava/lang/Object;
.source "FramentOrder2.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lframent/FramentOrder2;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "mOnclicliseter"
.end annotation


# instance fields
.field final synthetic this$0:Lframent/FramentOrder2;


# direct methods
.method private constructor <init>(Lframent/FramentOrder2;)V
    .locals 0

    .prologue
    .line 494
    iput-object p1, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lframent/FramentOrder2;Lframent/FramentOrder2$mOnclicliseter;)V
    .locals 0

    .prologue
    .line 494
    invoke-direct {p0, p1}, Lframent/FramentOrder2$mOnclicliseter;-><init>(Lframent/FramentOrder2;)V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 8
    .param p1, "arg0"    # Landroid/view/View;

    .prologue
    const/16 v7, 0x8

    const/4 v5, 0x0

    .line 498
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v3

    sparse-switch v3, :sswitch_data_0

    .line 589
    :goto_0
    return-void

    .line 501
    :sswitch_0
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->open:Ljava/lang/String;
    invoke-static {v3}, Lframent/FramentOrder2;->access$0(Lframent/FramentOrder2;)Ljava/lang/String;

    move-result-object v3

    const-string v4, "0"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 502
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->list_cart:Landroid/widget/ListView;
    invoke-static {v3}, Lframent/FramentOrder2;->access$1(Lframent/FramentOrder2;)Landroid/widget/ListView;

    move-result-object v3

    invoke-virtual {v3, v7}, Landroid/widget/ListView;->setVisibility(I)V

    .line 503
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->context:Landroid/content/Context;
    invoke-static {v3}, Lframent/FramentOrder2;->access$2(Lframent/FramentOrder2;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "\u5df2\u6253\u70ca"

    invoke-static {v3, v4, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    goto :goto_0

    .line 508
    :cond_0
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->open:Ljava/lang/String;
    invoke-static {v3}, Lframent/FramentOrder2;->access$0(Lframent/FramentOrder2;)Ljava/lang/String;

    move-result-object v3

    const-string v4, "1"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 509
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->list_cart:Landroid/widget/ListView;
    invoke-static {v3}, Lframent/FramentOrder2;->access$1(Lframent/FramentOrder2;)Landroid/widget/ListView;

    move-result-object v3

    invoke-virtual {v3, v7}, Landroid/widget/ListView;->setVisibility(I)V

    .line 510
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->context:Landroid/content/Context;
    invoke-static {v3}, Lframent/FramentOrder2;->access$2(Lframent/FramentOrder2;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "\u5df2\u6253\u70ca"

    invoke-static {v3, v4, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    goto :goto_0

    .line 514
    :cond_1
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->open:Ljava/lang/String;
    invoke-static {v3}, Lframent/FramentOrder2;->access$0(Lframent/FramentOrder2;)Ljava/lang/String;

    move-result-object v3

    const-string v4, "4"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 515
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->list_cart:Landroid/widget/ListView;
    invoke-static {v3}, Lframent/FramentOrder2;->access$1(Lframent/FramentOrder2;)Landroid/widget/ListView;

    move-result-object v3

    invoke-virtual {v3, v7}, Landroid/widget/ListView;->setVisibility(I)V

    .line 516
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->context:Landroid/content/Context;
    invoke-static {v3}, Lframent/FramentOrder2;->access$2(Lframent/FramentOrder2;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "\u5e97\u94fa\u4f11\u606f\u4e2d"

    invoke-static {v3, v4, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    goto :goto_0

    .line 521
    :cond_2
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->list_cart:Landroid/widget/ListView;
    invoke-static {v3}, Lframent/FramentOrder2;->access$1(Lframent/FramentOrder2;)Landroid/widget/ListView;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/ListView;->getVisibility()I

    move-result v3

    if-nez v3, :cond_3

    .line 522
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->list_cart:Landroid/widget/ListView;
    invoke-static {v3}, Lframent/FramentOrder2;->access$1(Lframent/FramentOrder2;)Landroid/widget/ListView;

    move-result-object v3

    invoke-virtual {v3, v7}, Landroid/widget/ListView;->setVisibility(I)V

    goto/16 :goto_0

    .line 524
    :cond_3
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->list_cart:Landroid/widget/ListView;
    invoke-static {v3}, Lframent/FramentOrder2;->access$1(Lframent/FramentOrder2;)Landroid/widget/ListView;

    move-result-object v3

    invoke-virtual {v3, v5}, Landroid/widget/ListView;->setVisibility(I)V

    .line 525
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->pupCarAdapter:Ldata/MarketPupCarAdapter;
    invoke-static {v3}, Lframent/FramentOrder2;->access$3(Lframent/FramentOrder2;)Ldata/MarketPupCarAdapter;

    move-result-object v3

    invoke-virtual {v3}, Ldata/MarketPupCarAdapter;->notifyDataSetChanged()V

    goto/16 :goto_0

    .line 532
    :sswitch_1
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->open:Ljava/lang/String;
    invoke-static {v3}, Lframent/FramentOrder2;->access$0(Lframent/FramentOrder2;)Ljava/lang/String;

    move-result-object v3

    const-string v4, "0"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_4

    .line 534
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->context:Landroid/content/Context;
    invoke-static {v3}, Lframent/FramentOrder2;->access$2(Lframent/FramentOrder2;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "\u5df2\u6253\u70ca"

    invoke-static {v3, v4, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    goto/16 :goto_0

    .line 539
    :cond_4
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->open:Ljava/lang/String;
    invoke-static {v3}, Lframent/FramentOrder2;->access$0(Lframent/FramentOrder2;)Ljava/lang/String;

    move-result-object v3

    const-string v4, "1"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_5

    .line 541
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->context:Landroid/content/Context;
    invoke-static {v3}, Lframent/FramentOrder2;->access$2(Lframent/FramentOrder2;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "\u5df2\u6253\u70ca"

    invoke-static {v3, v4, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    goto/16 :goto_0

    .line 545
    :cond_5
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->open:Ljava/lang/String;
    invoke-static {v3}, Lframent/FramentOrder2;->access$0(Lframent/FramentOrder2;)Ljava/lang/String;

    move-result-object v3

    const-string v4, "4"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_6

    .line 547
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->context:Landroid/content/Context;
    invoke-static {v3}, Lframent/FramentOrder2;->access$2(Lframent/FramentOrder2;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "\u5e97\u94fa\u4f11\u606f\u4e2d"

    invoke-static {v3, v4, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    goto/16 :goto_0

    .line 553
    :cond_6
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->tv_num:Lmyview/BadgeView;
    invoke-static {v3}, Lframent/FramentOrder2;->access$4(Lframent/FramentOrder2;)Lmyview/BadgeView;

    move-result-object v3

    invoke-virtual {v3}, Lmyview/BadgeView;->getText()Ljava/lang/CharSequence;

    move-result-object v3

    const-string v4, "0"

    invoke-virtual {v3, v4}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_7

    .line 554
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->context:Landroid/content/Context;
    invoke-static {v3}, Lframent/FramentOrder2;->access$2(Lframent/FramentOrder2;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "\u63d0\u793a\u4fe1\u606f"

    const-string v5, "\u8d2d\u7269\u8f66\u4e3a\u7a7a"

    invoke-static {v3, v4, v5}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    .line 558
    :cond_7
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->context:Landroid/content/Context;
    invoke-static {v3}, Lframent/FramentOrder2;->access$2(Lframent/FramentOrder2;)Landroid/content/Context;

    move-result-object v3

    const-string v4, "userInfo"

    invoke-virtual {v3, v4, v5}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    .line 559
    .local v1, "sharedPreferences":Landroid/content/SharedPreferences;
    const-string v3, "uid"

    const-string v4, ""

    invoke-interface {v1, v3, v4}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 561
    .local v2, "uid":Ljava/lang/String;
    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_8

    .line 562
    new-instance v0, Landroid/content/Intent;

    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->context:Landroid/content/Context;
    invoke-static {v3}, Lframent/FramentOrder2;->access$2(Lframent/FramentOrder2;)Landroid/content/Context;

    move-result-object v3

    const-class v4, Lcom/example/m6wmr/LoginActivity;

    invoke-direct {v0, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 563
    .local v0, "intent":Landroid/content/Intent;
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    const/16 v4, 0x58

    invoke-virtual {v3, v0, v4}, Lframent/FramentOrder2;->startActivityForResult(Landroid/content/Intent;I)V

    goto/16 :goto_0

    .line 566
    .end local v0    # "intent":Landroid/content/Intent;
    :cond_8
    new-instance v0, Landroid/content/Intent;

    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->context:Landroid/content/Context;
    invoke-static {v3}, Lframent/FramentOrder2;->access$2(Lframent/FramentOrder2;)Landroid/content/Context;

    move-result-object v3

    const-class v4, Lcom/example/m6wmr/CarOrderActivity;

    invoke-direct {v0, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 567
    .restart local v0    # "intent":Landroid/content/Intent;
    const-string v3, "shopid"

    iget-object v4, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->shopid:Ljava/lang/String;
    invoke-static {v4}, Lframent/FramentOrder2;->access$5(Lframent/FramentOrder2;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 569
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    invoke-virtual {v3, v0}, Lframent/FramentOrder2;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 573
    .end local v0    # "intent":Landroid/content/Intent;
    .end local v1    # "sharedPreferences":Landroid/content/SharedPreferences;
    .end local v2    # "uid":Ljava/lang/String;
    :sswitch_2
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->db:Landroid/database/sqlite/SQLiteDatabase;
    invoke-static {v3}, Lframent/FramentOrder2;->access$6(Lframent/FramentOrder2;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v3

    const-string v4, "cart"

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "shopid = \'"

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v6, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->shopid:Ljava/lang/String;
    invoke-static {v6}, Lframent/FramentOrder2;->access$5(Lframent/FramentOrder2;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\'"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    const/4 v6, 0x0

    invoke-virtual {v3, v4, v5, v6}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 574
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->adapter:Lframent/FramentOrder2$GoodsAdapter;
    invoke-static {v3}, Lframent/FramentOrder2;->access$7(Lframent/FramentOrder2;)Lframent/FramentOrder2$GoodsAdapter;

    move-result-object v3

    invoke-virtual {v3}, Lframent/FramentOrder2$GoodsAdapter;->notifyDataSetChanged()V

    .line 575
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->pupCarAdapter:Ldata/MarketPupCarAdapter;
    invoke-static {v3}, Lframent/FramentOrder2;->access$3(Lframent/FramentOrder2;)Ldata/MarketPupCarAdapter;

    move-result-object v3

    iget-object v4, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # invokes: Lframent/FramentOrder2;->getAllGoodsBeanList()Ljava/util/List;
    invoke-static {v4}, Lframent/FramentOrder2;->access$8(Lframent/FramentOrder2;)Ljava/util/List;

    move-result-object v4

    invoke-virtual {v3, v4}, Ldata/MarketPupCarAdapter;->setList(Ljava/util/List;)V

    .line 576
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->pupCarAdapter:Ldata/MarketPupCarAdapter;
    invoke-static {v3}, Lframent/FramentOrder2;->access$3(Lframent/FramentOrder2;)Ldata/MarketPupCarAdapter;

    move-result-object v3

    invoke-virtual {v3}, Ldata/MarketPupCarAdapter;->notifyDataSetChanged()V

    .line 577
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # invokes: Lframent/FramentOrder2;->searchCart()V
    invoke-static {v3}, Lframent/FramentOrder2;->access$9(Lframent/FramentOrder2;)V

    .line 578
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->list_cart:Landroid/widget/ListView;
    invoke-static {v3}, Lframent/FramentOrder2;->access$1(Lframent/FramentOrder2;)Landroid/widget/ListView;

    move-result-object v3

    invoke-virtual {v3, v7}, Landroid/widget/ListView;->setVisibility(I)V

    goto/16 :goto_0

    .line 581
    :sswitch_3
    iget-object v3, p0, Lframent/FramentOrder2$mOnclicliseter;->this$0:Lframent/FramentOrder2;

    # getter for: Lframent/FramentOrder2;->list_cart:Landroid/widget/ListView;
    invoke-static {v3}, Lframent/FramentOrder2;->access$1(Lframent/FramentOrder2;)Landroid/widget/ListView;

    move-result-object v3

    invoke-virtual {v3, v7}, Landroid/widget/ListView;->setVisibility(I)V

    goto/16 :goto_0

    .line 498
    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0c007a -> :sswitch_1
        0x7f0c00a8 -> :sswitch_3
        0x7f0c01a6 -> :sswitch_0
        0x7f0c036d -> :sswitch_2
    .end sparse-switch
.end method
